package SecondQuestion;

import java.util.Arrays;

public class Grades {

    public int show(int score[]){
        int count=0;
        Arrays.sort(score);
        System.out.println(Arrays.toString(score));
        for (int s:score) {
            count++;
        }
       return count;
    }

    public static void main(String[] args) {
        int score[]={96,89,56,78,54,98,54};
        Grades grades=new Grades();
        int num=grades.show(score);
        System.out.println("元素个数为:"+num);
    }
}
